package com.hns.can.service.vo;

import com.hns.tool.pub.DateTool;

import java.math.BigDecimal;

/**
 * 驾驶员能耗考核vo
 * @author:zhangzq
 * @email:
 * @version Revision 2.0.0
 */
public class EnergySavingVo extends EvaluationVo {
    private String drvId;
    private String drvName;
    private String corpId;
    private BigDecimal totalMile;       //总里程
    private BigDecimal totalEnerCons;   //总能耗
    private BigDecimal hundKmEnerCons;  //HUND_KM_ENER_CONS   百公里能耗
    private BigDecimal trgtEnerCons;    //TRGT_ENER_CONS      参考能耗
    private BigDecimal lineAvrgEnerCons;//LINE_AVRG_ENER_CONS 平均能耗
    private BigDecimal enerConsPetg;    //ENER_CONS_PETG      能耗百分比
    private BigDecimal score;           //转换后的分数
    private BigDecimal rank;                //排名
    private String allRank;             //完整排名
    private double grade;               //得分
    private BigDecimal refrEnerCons;
    private String wthrEnersav;          //WTHR_ENERSAV       是否节能
    private BigDecimal totalDura;

    public String getDrvId() {
        return drvId;
    }
    public void setDrvId(String drvId) {
        this.drvId = drvId;
    }
    public String getDrvName() {
        return drvName;
    }
    public void setDrvName(String drvName) {
        this.drvName = drvName;
    }
    public BigDecimal getTotalMile() {
        return totalMile;
    }
    public void setTotalMile(BigDecimal totalMile) {
        this.totalMile = totalMile;
    }
    public BigDecimal getTotalEnerCons() {
        return totalEnerCons;
    }
    public void setTotalEnerCons(BigDecimal totalEnerCons) {
        this.totalEnerCons = totalEnerCons;
    }
    public BigDecimal getRank() {
        return rank;
    }
    public void setRank(BigDecimal rank) {
        this.rank = rank;
    }
    public String getEnerPercent() {
        return ""+this.getEnerConsPetg();
    }
    public String getCorpId() {
        return corpId;
    }
    public void setCorpId(String corpId) {
        this.corpId = corpId;
    }
    public BigDecimal getHundKmEnerCons() {
        return hundKmEnerCons;
    }
    public void setHundKmEnerCons(BigDecimal hundKmEnerCons) {
        this.hundKmEnerCons = hundKmEnerCons;
    }
    public BigDecimal getTrgtEnerCons() {
        return trgtEnerCons;
    }
    public void setTrgtEnerCons(BigDecimal trgtEnerCons) {
        this.trgtEnerCons = trgtEnerCons;
    }
    public BigDecimal getLineAvrgEnerCons() {
        return lineAvrgEnerCons;
    }
    public void setLineAvrgEnerCons(BigDecimal lineAvrgEnerCons) {
        this.lineAvrgEnerCons = lineAvrgEnerCons;
    }
    public BigDecimal getEnerConsPetg() {
        return enerConsPetg;
    }
    public void setEnerConsPetg(BigDecimal enerConsPetg) {
        this.enerConsPetg = enerConsPetg;
    }
    public String getWthrEnersav() {
        if(wthrEnersav.equals("0")){
            return "否";
        }else{
            return "是";
        }
    }
    public void setWthrEnersav(String wthrEnersav) {
        this.wthrEnersav = wthrEnersav;
    }
    public BigDecimal getScore() {
        return score;
    }
    public void setScore(BigDecimal score) {
        this.score = score;
    }
    public double getGrade() {
        return grade;
    }
    public void setGrade(double grade) {
        this.grade = grade;
    }

    public BigDecimal getTotalDura() {
        return totalDura;
    }

    public void setTotalDura(BigDecimal totalDura) {
        this.totalDura = totalDura;
    }

    public String getLastingTime() {
        if(this.getTotalDura()!=null){
            return DateTool.transformTimeForTimeUnit(this.getTotalDura(), "HH'MI'SS''");
        }else{
            return "";
        }
    }
    public String getAllRank() {
        return allRank;
    }
    public void setAllRank(String allRank) {
        this.allRank = allRank;
    }
    public BigDecimal getRefrEnerCons() {
        return refrEnerCons;
    }
    public void setRefrEnerCons(BigDecimal refrEnerCons) {
        this.refrEnerCons = refrEnerCons;
    }
}
